import ax from '@/utils/request'
import { downloadExcelFile } from '@/api/file'


export function detail(data) {
  return ax.request({
    url: 'billSheetOut/detail',
    method: 'post',
    data
  })
}

// 导出
export function exportDetail(params,name) {
  downloadExcelFile('/billSheetOut/exportDetail', 'post', name, params);
}

// 导出
export function exportList(params,name) {
  downloadExcelFile('/billSheetOut/exportList', 'post', name, params);
}

export function list(data) {
  return ax.request({
    url: 'billSheetOut/list',
    method: 'post',
    data
  })
}
export function stat(data) {
  return ax.request({
    url: 'billSheetOut/stat',
    method: 'post',
    data
  })
}

export function dropDown() {
  return ax.request({
    url: 'deviceSheet/dropDown',
    method: 'post'
  })
}

